<template>
  <div class="table">
    <div class="table_title">
      <span>级别</span>
      <span>事件</span>
      <span>数据</span>
      <span>时间</span>
    </div>
    <div class="table_list">
      <div v-for="(item, index) in data" :key="index">
        <span
          ><span class="level" :style="{ background: item.color }"></span
        ></span>
        <span>{{ item.name }}</span>
        <span>{{ item.delay }}</span>
        <span>{{ item.time }}</span>
      </div>
    </div>
  </div>
</template>

<script setup>
const data = [
  {
    color: "#FEFF84",
    name: "销售系统后台崩溃",
    delay: "20分钟",
    time: "10:23",
  },
  {
    color: "#FFA184",
    name: "销售系统后台崩溃",
    delay: "30分钟",
    time: "11:23",
  },
  {
    color: "#00F6FF",
    name: "销售系统后台崩溃",
    delay: "40分钟",
    time: "12:23",
  },
  {
    color: "#0054FF",
    name: "销售系统后台崩溃",
    delay: "20分钟",
    time: "13:23",
  },
];
</script>

<style lang="less" scoped>
.table {
  .table_title {
    width: 437px;
    height: 31px;
    line-height: 31px;
    background: #1c3b8b;
    border-radius: 16px 16px 16px 16px;
    margin-top: 52px;
    margin-left: 27px;
    & > span {
      display: inline-block;
      width: 109px;
      height: 16px;
      font-family: SourceHanSansCN, SourceHanSansCN;
      font-weight: 400;
      font-size: 16px;
      color: #dcecff;
      line-height: 18px;
      text-align: center;
      font-style: normal;
      text-transform: none;
    }
  }
  .table_list {
    width: 437px;
    margin-left: 27px;
    div {
      height: 16px;
      .level {
        width: 16px;
        height: 16px;
        border-radius: 8px;
      }
      margin-top: 20px;
      span {
        display: inline-block;
        width: 109px;
        height: 16px;
        font-family: SourceHanSansCN, SourceHanSansCN;
        font-weight: 400;
        font-size: 13px;
        color: #dcecff;
        line-height: 18px;
        text-align: center;
        font-style: normal;
        text-transform: none;
      }
    }
  }
}
</style>